package com.gsm.dao;

import com.gsm.entity.CourseDetails;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 课程细节(CourseDetails)表数据库访问层
 *
 * @author wjq
 * @since 2020-05-01 18:57:05
 */
public interface CourseDetailsDao {

    int insertCourseDetails(CourseDetails courseDetails);

    int deleteCourseDetailsByCourseDetailsId(Long courseDetailsId);

    int deleteCourseDetailsByCourseId(Long courseId);

    int updateCourseDetailsByCourseDetailsId(CourseDetails courseDetails);

    CourseDetails selectCourseDetailsByCourseDetailsId(Long courseDetailsId);

    CourseDetails selectCourseDetailsByCourseId(Long courseId);

    List<CourseDetails> selectCourseDetailsList(CourseDetails courseDetails);
}